// Generated.

using DanMuHelper.Editor;

namespace DanMuHelper.Generated
{
    public class AssetMenuFilter : IAssetMenuFilter
    {
        //private static string[] _excludeScenes = new string[] { "DOTweenPro Examples", "TextMesh Pro" };

        public string Filter(IAssetMenuFilter.AssetType assetType, string assetPath, string menuItemName)
        {
            if (assetType == IAssetMenuFilter.AssetType.Scene)
            {
                if (assetPath.Contains("_Project")
                    && !assetPath.Contains("Sample")
                    && !assetPath.Contains("Test"))
                {
                    return menuItemName;
                }
                return null;
                //foreach (var scene in _excludeScenes)
                //{
                //    if (assetPath.Contains(scene))
                //    {
                //        // 返回null排除菜单
                //        return null;
                //    }
                //}
            }
            // 菜单名称可以原样返回, 也可以自定义
            return menuItemName;
        }
    }
}